Skip to content

Conversation

TheBlueMatt
Copy link
Collaborator

No description provided.

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Oct 10, 2025

👋 Thanks for assigning @tankyleo as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Copy link

codecov bot commented Oct 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.79%. Comparing base (5b3692a) to head (de3ddfa).
⚠️ Report is 4 commits behind head on 0.2.

Additional details and impacted files
@@            Coverage Diff             @@
##              0.2    #4159      +/-   ##
==========================================
+ Coverage   88.77%   88.79%   +0.02%     
==========================================
  Files         180      180              
  Lines      136566   136566              
  Branches   136566   136566              
==========================================
+ Hits       121233   121266      +33     
+ Misses      12535    12500      -35     
- Partials     2798     2800       +2     
Flag Coverage Δ
fuzzing 21.63% <ø> (+0.59%) ⬆️
tests 88.63% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ldk-reviews-bot
Copy link

🔔 1st Reminder

Hey @tankyleo! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@@ -1,6 +1,6 @@
[package]
name = "lightning-types"
version = "0.3.0+git"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit mostly LGTM; from the commit message, didn't quite catch any methods we removed, but we did modify the clear_ public function signatures in 6836fc4

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that too. I was referring to this I see in the diff-tree:

-impl<T: sealed::UpfrontShutdownScript> Features<T> {
-       /// Unsets the `upfront_shutdown_script` feature
-       pub fn clear_upfront_shutdown_script(mut self) -> Self {
-               <T as sealed::UpfrontShutdownScript>::clear_bits(&mut self.flags);
-               self
-       }
-}
-
-impl<T: sealed::ShutdownAnySegwit> Features<T> {
-       /// Unsets the `shutdown_anysegwit` feature
-       pub fn clear_shutdown_anysegwit(mut self) -> Self {
-               <T as sealed::ShutdownAnySegwit>::clear_bits(&mut self.flags);
-               self
-       }
-}
-
-impl<T: sealed::Wumbo> Features<T> {
-       /// Unsets the `wumbo` feature
-       pub fn clear_wumbo(mut self) -> Self {
-               <T as sealed::Wumbo>::clear_bits(&mut self.flags);
-               self
-       }
-}
-
-impl<T: sealed::SCIDPrivacy> Features<T> {
-       /// Unsets the `scid_privacy` feature
-       pub fn clear_scid_privacy(&mut self) {
-               <T as sealed::SCIDPrivacy>::clear_bits(&mut self.flags);
-       }
-}
-
-impl<T: sealed::AnchorsZeroFeeHtlcTx> Features<T> {
-       /// Unsets the `anchors_zero_fee_htlc_tx` feature
-       pub fn clear_anchors_zero_fee_htlc_tx(&mut self) {
-               <T as sealed::AnchorsZeroFeeHtlcTx>::clear_bits(&mut self.flags);
-       }
-}
-
-impl<T: sealed::RouteBlinding> Features<T> {
-       /// Unsets the `route_blinding` feature
-       pub fn clear_route_blinding(&mut self) {
-               <T as sealed::RouteBlinding>::clear_bits(&mut self.flags);
-       }
-}
-

@ldk-reviews-bot
Copy link

👋 The first review has been submitted!

Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer.

@TheBlueMatt
Copy link
Collaborator Author

Updated to new version of #4158

Copy link
Contributor

@tankyleo tankyleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks just pushed two nits on the new script upstream

@tankyleo
Copy link
Contributor

Needs rebase, then good to go

These have been merged, causing our docs.rs builds to fail. Sadly,
we saw our docs.rs build fail for the 0.1.6 upload because of this.

Backport of 6aea586
Sadly, our docs.rs build failed for 0.1.6 due to the unstable
`doc_auto_cfg` feature being removed. Here, we try to emulate
docs.rs builds as best we can in CI to head that off in the future.

Backport of d3faa03
This bumps `lightning` to 0.2-beta1, `lightning-invoice` to
0.34-beta1, `lightning-types` to 0.3-beta1, and
`lightning-dns-resolver` to 0.3-beta1.

While `lightning-types` really doesn't entirely merit a version
bump here (we almost entirely just added features, which isn't a
breaking change), we removed a few redundant feature flag modifying
methods, which technically broke semver. Hopefully the next version
will be able to avoid that.

As a result of the `lightning-types` bump, `lightning-invoice` also
gets bumped, though it would otherwise not need it.
@TheBlueMatt
Copy link
Collaborator Author

Rebased with latest backport of #4158

@TheBlueMatt TheBlueMatt merged commit 5e24272 into lightningdevkit:0.2 Oct 13, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants